package auction.chapter16.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T, ID extends Serializable> {
	
	T findById(ID id,boolean lock);
	
	List<T> findAll();
	
	List<T> findByExample(T example,String... excludeProperty);
	
	T makePersistent(T entity);
	
	void makeTransient(T entity);
	
	void flush();
	
	void clear();

}
